<h1>Listing dscores</h1>

<table>
  <tr>
    <th>Rate</th>
    <th>Status</th>
    <th>User</th>
    <th>User name</th>
    <th>Dish</th>
    <th>Dish Name</th>
    <th>Resevation</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @dscores.each do |dscore| %>
  <tr>
    <td><%= dscore.rate %></td>
    <td><%= dscore.status %></td>
    <td><%= dscore.user_id %></td>
    <td><%= dscore.user_name %></td>
    <td><%= dscore.dish_id %></td>
    <td><%= dscore.dish_name %></td>
    <td><%= dscore.resid %></td>
    <td><%= link_to 'Show', dscore %></td>
    <td><%= link_to 'Edit', edit_dscore_path(dscore) %></td>
    <td><%= link_to 'Destroy', dscore, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Dscore', new_dscore_path %>
